//
//  VoiceReadDetailContentCell.h
//  ShowYork
//
//  Created by hxh on 2021/4/20.
//  Copyright © 2021 hxh. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "VoiceReadDetailPlayerModel.h"
NS_ASSUME_NONNULL_BEGIN


@protocol VoiceReadDetailContentCellDelegate <NSObject>

@optional
- (void)playWithCurrentModel:(VoiceReadDetailPlayerModel *)currentModel;
- (void)pauseWithCurrentModel:(VoiceReadDetailPlayerModel *)currentModel;
- (void)failedWithCurrentModel:(VoiceReadDetailPlayerModel *)currentModel;
- (void)changeBeginCountByProgressView:(CGFloat)playCount;
- (void)changePlayCountByProgressView:(int)playCount;
- (void)changeEndCountByProgressView:(CGFloat)playCount;
@end

@interface VoiceReadDetailContentCell : UITableViewCell

@property (nonatomic,strong)VoiceReadDetailPlayerModel *model;
@property (nonatomic,weak)id<VoiceReadDetailContentCellDelegate>delegate;

+(instancetype)cellWithTableView:(UITableView *)tableView;

- (void)updateProgressValue;

@end

NS_ASSUME_NONNULL_END
